<template>
  <div class="event-bus-delete">
    <button class="btn" @click="del(1)">
      - 1
    </button>
    <button class="btn" @click="del(10)">
      - 10
    </button>
  </div>
</template>

<script>
export default {
  name: "eventBusDelete",
  data() {
    return {};
  },
  computed: {},
  created() {},
  methods: {
    del(delNumber) {
      this.$eventBus.$emit("demoDel", delNumber);
    }
  }
};
</script>

<style lang="scss" scoped>
.event-bus-delete {
  .btn {
    margin-right: 20px;
    margin-bottom: 10px;
    padding: 5px 10px;
    line-height: 20px;
    font-size: 12px;
    color: white;
    background: $color-theme;
    box-shadow: 0 0 3px 0.5px $color-theme-light;
  }
}
</style>
